package com.industrial.im.config;

import io.rong.RongCloud;
import org.springframework.beans.factory.annotation.Value;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;

@Configuration
public class RongCloudConfig {

    @Value("${rongCloud.appKey}")
    private String appKey;
    @Value("${rongCloud.appSecret}")
    private String appSecret;

    @Value("${rongCloud.url}")
    private String url;

    @Bean
    public RongCloud rongCloud(){
        RongCloud rongCloud = RongCloud.getInstance(appKey, appSecret);
        return rongCloud;
    }

}
